package com.dhh.vo;

public class PlanItem {
	public final static String C_ROWID = "_ID";
	public final static String C_PERIOD = "PERIOD";
	public final static String C_FOOD_NAME = "FOOD_NAME";
	public final static String C_FOOD_GROUP = "FOOD_GROUP";
	public final static String C_ENERGY = "ENERGY";
	public final static String C_PARENT = "PARENT";
	public final static String C_QUATITY = "QUATITY";
	public final static String PERIOD_BREAKFAST = "BREAKFAST";
	public final static String PERIOD_LUNCH = "LUNCH";
	public final static String PERIOD_DINNER = "DINNER";
	public final static String PERIOD_SNACK = "SNACK";
	
	private String id;
	private String period;
	private String foodName;
	private String foodGroup;
	private String energy;
	private String parent;
	private String quatity;

	
	public PlanItem(){}
	
	public PlanItem(String id,String period,String foodName,String foodGroup,String quatity,String energy,String parent){
		this.id = id;
		this.period = period;
		this.foodName = foodName;
		this.foodGroup = foodGroup;
		this.energy = energy;
		this.parent = parent;
		this.quatity = quatity;
	}
	
	public String getQuatity() {
		if(quatity==null)
			return "0";
		return quatity;
	}
	public void setQuatity(String quatity) {
		this.quatity = quatity;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPeriod() {
		return period;
	}

	public void setPeriod(String period) {
		this.period = period;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}
	
	public String getFoodName() {
		return foodName;
	}
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	public String getFoodGroup() {
		return foodGroup;
	}
	public void setFoodGroup(String foodGroup) {
		this.foodGroup = foodGroup;
	}
	public String getEnergy() {
		return energy;
	}

	public void setEnergy(String energy) {
		this.energy = energy;
	}
	
	public static String[] getColumns(){
		String[] columns = {C_ROWID,C_PERIOD,C_FOOD_NAME,C_FOOD_GROUP,C_QUATITY,C_ENERGY,C_PARENT};
		return columns;
	} 
}
